<?php

class Application_Model_DbTable_CaiJiaGe extends Zend_Db_Table_Abstract
{

    protected $_name = 'txy_cai_jiage';

    public function addNew(Array $data){
        $this->insert($data);
    }
    
    public function getDataById($id){
        $res=$this->fetchRow('id ='.$id);
        return $res->toArray();
    }
    
    public function getDataByIds($id){
        $res=$this->fetchAll('id in ('.$id.')');
        return $res->toArray();
    }
}

